home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Burning & Media / GB-PVR 1.2.13 / GBPVR10213.msi / Cabs.w1.cab / Ajax2.js527 < prev    next >
Text File  |  2008-02-23  |  1KB  |  70 lines

  1. ∩╗┐var intervalID;
  2. var intervalReminderID;
  3. var intervalStreamerID;
  4.  
  5. function GetServerTime()
  6. {
  7.     intervalID = setInterval("RunTime();",5000);
  8. }
  9.  
  10. function RunTime()
  11. {
  12.     gbweb.classes.Ajax_Calls2.GetServerTime(CallbackFunc);
  13. }
  14.  
  15. function CallbackFunc(value)
  16. {
  17.     document.getElementById("serverTime").innerHTML="Server Time: " + value;
  18. }
  19.  
  20. function GetReminders()
  21. {
  22.     intervalReminderID = setInterval("GetReminder();",6000);
  23. }
  24.  
  25. function GetReminder()
  26. {
  27.     gbweb.classes.Ajax_Calls2.GetReminders(CallbackReminderFunc);
  28. }
  29.  
  30.  
  31. function CallbackReminderFunc(value)
  32. {
  33.     if (value != "")
  34.     {
  35.        document.getElementById("remDiv").innerHTML = "Reminders: ";
  36.        document.getElementById("REMINDER_DIV").innerHTML = value;
  37.        document.getElementById("FIXED_DIV").innerHTML = value;
  38.     }
  39.     else
  40.     {
  41.        document.getElementById("remDiv").innerHTML = "";
  42.        document.getElementById("REMINDER_DIV").innerHTML = "";
  43.        document.getElementById("FIXED_DIV").innerHTML = "";
  44.     }
  45. }
  46.  
  47. function GetStreamStatus()
  48. {
  49.     intervalStreamerID = setInterval("StreamCheck();",30000);
  50. }
  51.  
  52. function StreamCheck()
  53. {
  54.     gbweb.classes.Ajax_Calls2.GetStreamerStatus(CallbackStreamFunc);
  55. }
  56.  
  57. function CallbackStreamFunc(value)
  58. {
  59.     if (value != "")
  60.     {
  61.     document.getElementById("streamMessage").innerHTML = "Streaming is Active";
  62.     }
  63.     else
  64.     {
  65.     document.getElementById("streamMessage").innerHTML = "";
  66.     }
  67.     
  68. }
  69.  
  70.